
<h1>Add Tour style</h1>

	<?php if($this->message->has('error')):?>
	<div class="error"><h2><?php echo $this->message->display();?></h2></div>
	<?php endif;?>

    <div class="tableout">
		<div class="title1">
            <div class="column" style="width:100%;">Add new tour:</div>
        </div>
        <?php 
        $attr = array(
        	'method'	=>	'post'
        );
        ?>
        
        <?php echo form_open(admin_url('module/add'),$attr);?>
        <div style="width:100%; float:left;">
            <ul class="lineadd2">
                <li>
                    <span class="left">Tour style:</span>
                    <span class="right">
                        <select name="parent_id" style="width:60%;">
                            <option value="0">--Root--</option>
                            <?php foreach($rows_module as $row):?>
                            <option value="<?php echo $row->id;?>"><?php echo $row->title;?></option>
                            <?php endforeach;?>
                        </select>
                    </span>
                </li>
                <li>
                    <span class="left">Title:</span>
                    <span class="right"><input type="text" name="title" value="<?php echo set_value('title');?>" style="width:60%;" /></span>
                </li>
                <li>
                    <span class="left">Name:</span>
                    <span class="right"><input type="text" name="name" value="<?php echo set_value('name');?>" style="width:60%;" /></span>
                </li>
                <li>
                    <span class="left">Css class:</span>
                    <span class="right"><input type="text" name="class" value="" style="width:60%;" /></span>
                </li>
            </ul>
            
            
        </div>

        <div class="bottomadd">	
        	<input type="submit" name="" value="Back" class="btnsave" />
            <input type="button" name="" value="Clear" class="btnsave" />
        	<input type="submit" onclick="" name="" value="Save & Continute" class="btnsave" />
        </div>
        <?php echo form_close();?>
        
    </div>